home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / sabermania.swf / scripts / frame_366 / PlaceObject2_1077_12 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2006-05-08  |  799b  |  34 lines

  1. onClipEvent(enterFrame){
  2.    if(Key.isDown(81))
  3.    {
  4.       _root.sabermaniablock.removeMovieClip();
  5.       _root.flashsaber.removeMovieClip();
  6.       _root.myopp.removeMovieClip();
  7.       _root.gotoAndPlay("menustart");
  8.    }
  9.    if(Key.isDown(78) && _root.win == 1)
  10.    {
  11.       _root.sabermaniablock.removeMovieClip();
  12.       _root.flashsaber.removeMovieClip();
  13.       _root.myopp.removeMovieClip();
  14.       if(_root.gamemode == "storymode")
  15.       {
  16.          _root._progress += 1;
  17.          _root.gotoAndPlay("op" + _root._progress);
  18.       }
  19.       else
  20.       {
  21.          _root.gotoAndPlay("vschooser");
  22.       }
  23.    }
  24.    if(_root.health <= 0)
  25.    {
  26.       _root.health = 0;
  27.       _root.lost = 1;
  28.    }
  29.    if(_root.lost == 1)
  30.    {
  31.       _root.gotoAndPlay("youloseversusmode");
  32.    }
  33. }
  34.